Fourier Transform of Gate Function